package com.bm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ejyy_employee_sign_record
 */
@TableName(value ="ejyy_employee_sign_record")
@Data
public class EjyyEmployeeSignRecord implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long communityId;

    /**
     * 
     */
    private Long date;

    /**
     * 
     */
    private Long begin;

    /**
     * 
     */
    private Double beginLat;

    /**
     * 
     */
    private Double beginLng;

    /**
     * 
     */
    private Integer beginAccuracy;

    /**
     * 
     */
    private Long finish;

    /**
     * 
     */
    private Double finishLat;

    /**
     * 
     */
    private Double finishLng;

    /**
     * 
     */
    private Integer finishAccuracy;

    /**
     * 
     */
    private Long createdBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EjyyEmployeeSignRecord other = (EjyyEmployeeSignRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getBegin() == null ? other.getBegin() == null : this.getBegin().equals(other.getBegin()))
            && (this.getBeginLat() == null ? other.getBeginLat() == null : this.getBeginLat().equals(other.getBeginLat()))
            && (this.getBeginLng() == null ? other.getBeginLng() == null : this.getBeginLng().equals(other.getBeginLng()))
            && (this.getBeginAccuracy() == null ? other.getBeginAccuracy() == null : this.getBeginAccuracy().equals(other.getBeginAccuracy()))
            && (this.getFinish() == null ? other.getFinish() == null : this.getFinish().equals(other.getFinish()))
            && (this.getFinishLat() == null ? other.getFinishLat() == null : this.getFinishLat().equals(other.getFinishLat()))
            && (this.getFinishLng() == null ? other.getFinishLng() == null : this.getFinishLng().equals(other.getFinishLng()))
            && (this.getFinishAccuracy() == null ? other.getFinishAccuracy() == null : this.getFinishAccuracy().equals(other.getFinishAccuracy()))
            && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getBegin() == null) ? 0 : getBegin().hashCode());
        result = prime * result + ((getBeginLat() == null) ? 0 : getBeginLat().hashCode());
        result = prime * result + ((getBeginLng() == null) ? 0 : getBeginLng().hashCode());
        result = prime * result + ((getBeginAccuracy() == null) ? 0 : getBeginAccuracy().hashCode());
        result = prime * result + ((getFinish() == null) ? 0 : getFinish().hashCode());
        result = prime * result + ((getFinishLat() == null) ? 0 : getFinishLat().hashCode());
        result = prime * result + ((getFinishLng() == null) ? 0 : getFinishLng().hashCode());
        result = prime * result + ((getFinishAccuracy() == null) ? 0 : getFinishAccuracy().hashCode());
        result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", communityId=").append(communityId);
        sb.append(", date=").append(date);
        sb.append(", begin=").append(begin);
        sb.append(", beginLat=").append(beginLat);
        sb.append(", beginLng=").append(beginLng);
        sb.append(", beginAccuracy=").append(beginAccuracy);
        sb.append(", finish=").append(finish);
        sb.append(", finishLat=").append(finishLat);
        sb.append(", finishLng=").append(finishLng);
        sb.append(", finishAccuracy=").append(finishAccuracy);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}